﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PaperFeedbackEdit.ascx.cs" Inherits="ExaminationSys.View.Paper.PaperFeedbackEdit" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script type="text/javascript" language="javascript">
    var setID = function (id, paperFeedBackCommentID) {
        try {

            var hidden = document.getElementById('<%=IDHidden.ClientID %>');
            hidden.value = id;    

            var hidden3 = document.getElementById('<%=HidPaperFeedBackCommentID.ClientID %>');
            hidden3.value = paperFeedBackCommentID;
        } catch (e) {
            alert(e);
        }
    };

    //编辑信息
//    var win;
//    function setInfo(pageurl) {
//        var pageurl = "../Paper/SelectPaperList.aspx";
//        win = new Ext.Window({
//            title: '选择试卷',
//            // maximizable : true,
//            // maximized : true,
//            width: 780,
//            height: 520,
//            // autoScroll : true,
//            // bodyBorder : true,
//            // draggable : true,
//            isTopContainer: true,
//            loadMask: {
//                showMask: true,
//                msg: "正在加载，请稍后……"
//            },
//            modal: true,
//            resizable: false,
//            contentEl: Ext.DomHelper.append(document.body, {
//                tag: 'iframe',
//                style: "border 0px none;scrollbar:false",
//                src: pageurl,
//                height: "100%",
//                width: "100%"
//            })
//        });
//        win.setPaperInfo = function (paperid, title) {

//            var hidPaperId = document.getElementById('<%=HidPaperId.ClientID %>');
//            hidPaperId.value = paperid;
//            document.getElementById("ctl25_PaperID-inputEl").value = title;
// 
//        };
//        win.show();

//    }



</script>
<input type="hidden" id="IDHidden" runat="server" />
<input type="hidden" id="HidSectionID" runat="server" />
<input type="hidden" id="HidPaperFeedBackCommentID" runat="server" />
<input type="hidden" id="HidTestType" runat="server" />
<input type="hidden" id="HidPaperId" runat="server" />
 
<ext:Window ID="PaperFeedbackEditWindow" runat="server" Icon="Group" Title="添加评语" Width="680"
    Height="356" AutoShow="false" Modal="true" Hidden="true" Layout="Fit">
    <Items>
        <ext:FormPanel ID="PaperFeedbackEditPanel" runat="server" Icon="ChartOrganisation"
            DefaultAnchor="95%" Padding="5" BodyPadding="10">
            <Items>
             <ext:FieldContainer ID="FieldContainer1" 
                runat="server" 
                FieldLabel="评分标准"
                Layout="HBoxLayout">
                <Items>
                      <ext:RadioGroup 
                    ID="RadioGroupPub" 
                    runat="server"                       
                    Padding="5" Cls="lbl"
                    >
                    <Items>
                        <ext:Radio ID="RadioPoint" runat="server" Checked="true" BoxLabel="按分数"  />
                        <ext:Radio ID="RadioTime" runat="server" Margins="0 3 0 3" BoxLabel="按时长" />
                    </Items>
                </ext:RadioGroup>
                </Items>
            </ext:FieldContainer>


             <ext:FieldContainer ID="TimeRankContainer" 
                runat="server" 
                FieldLabel="取值范围"
                Layout="HBoxLayout">
                <Items>
                    <ext:NumberField ID="StartValue" runat="server" Width="70" Margins="0 3 0 0" />
                    <ext:DisplayField ID="DisplayField2" runat="server" Text="至" Cls="dot-label" />
                    <ext:NumberField ID="EndValue" runat="server" Width="70"  Margins="0 3 0 3" />
                </Items>
            </ext:FieldContainer>
             <ext:FieldContainer ID="OrderIndexContainer" 
                runat="server" 
                FieldLabel="排序"
                Layout="HBoxLayout">
                <Items>
                    <ext:NumberField ID="OrderIndex" runat="server" Width="70" Margins="0 3 0 0" />
                </Items>
            </ext:FieldContainer>
             <ext:FieldContainer ID="CommentContainer" 
                runat="server" 
                FieldLabel="评语建议"
                Layout="HBoxLayout">
                <Items>
                  <ext:HtmlEditor ID="Comment" runat="server" AutoScroll="true" Height="150" Width="660"/>
                  
                </Items>
            </ext:FieldContainer>
            
            </Items>
        </ext:FormPanel>
    </Items>
    <Buttons>
        <ext:Button ID="SaveButton" runat="server" Text="保存" Icon="BulletGo">
            <DirectEvents>
                <Click OnEvent="SavePaperFeedback" Failure="Ext.MessageBox.alert('Saving failed', 'Error during ajax event');" Success="#{StorePaperFeedback}.reload();">
                </Click>
            </DirectEvents>
        </ext:Button>
        <ext:Button ID="CancelButton" runat="server" Text="取消" Icon="Cancel">
            <Listeners>
                <Click Handler="#{PaperFeedbackEditWindow}.hide(null);" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>
 